package com.shop.user.atom.dao;

import com.shop.common.entity.user.Address;
import com.shop.common.model.param.user.AddressInput;
import com.shop.common.model.result.user.AddressOutput;

import java.util.List;

public interface AddressMapper {
    /**
     *
     * @mbggenerated 2019-02-28
     */
    int deleteByPrimaryKey(Integer id);

    int deleteByIds(List<Integer> ids);

    /**
     *
     * @mbggenerated 2019-02-28
     */
    int insert(AddressInput record);

    /**
     *
     * @mbggenerated 2019-02-28
     */
    int insertSelective(AddressInput record);

    /**
     *
     * @mbggenerated 2019-02-28
     */
    AddressOutput selectByPrimaryKey(Integer id);

    List<AddressOutput> selectBySelective(AddressInput address);

    /**
     *
     * @mbggenerated 2019-02-28
     */
    int updateByPrimaryKeySelective(AddressInput record);

    /**
     *
     * @mbggenerated 2019-02-28
     */
    int updateByPrimaryKey(AddressInput record);

    Integer selectAddressCount(AddressInput address);
}